{% extends 'TopxiaWebBundle:MoneyRecord:layout.html.twig' %}

{% set script_controller = 'my/orders' %}

{% set main_nav = 'IncomeRecords' %}

{% block main_body %}
  <table class="table table-striped table-hover" id="incomes-table">
    <thead>
      <th>{{'金额'|trans}}</th>
      <th>{{'充值方式'|trans}}</th>
      <th>{{'交易号'|trans}}</th>
      <th>{{'充值时间'|trans}}</th>
    </thead>
    <tbody>
      {% if incomeRecords %}
        {% for incomeRecord in incomeRecords %}
          <tr>
            <td>{{ incomeRecord.amount }}</td>
            <td></td>
            <td>{{'%transactionNo%元'|trans({'%transactionNo%':incomeRecord.transactionNo})}}</td>
            <td>{{ incomeRecord.createdTime|date('Y-n-d H:i') }}</td>
          </tr>
        {% else %}
          <tr>
            <td colspan="20" class="empty">{{'无充值记录'|trans}}</td>
          </tr>
        {% endfor %}
      {% endif %}
    </tbody>
  </table>
    {{ web_macro.paginator(paginator) }}
{% endblock %}